---
title: Alibaba Cloud
sidebar:
    order: 11
---

import { FileTree } from "@astrojs/starlight/components"
import { Steps } from "@astrojs/starlight/components"
import { Tabs, TabItem } from "@astrojs/starlight/components"
import { Image } from "astro:assets"
import LLMProviderFeatures from "../../../components/LLMProviderFeatures.astro"

The `alibaba` provider access the [Alibaba Cloud](https://www.alibabacloud.com/) models.

```js "alibaba:"
script({
    model: "alibaba:qwen-max",
})
```

<Steps>

<ol>

<li>

Sign up for a [Alibaba Cloud account](https://www.alibabacloud.com/help/en/model-studio/developer-reference/get-api-key) and obtain an API key from their [console](https://bailian.console.alibabacloud.com/).

</li>

<li>

Add your Alibaba API key to the `.env` file:

```txt title=".env"
ALIBABA_API_KEY=sk_...
```

</li>

<li>

Find the model that best suits your needs by visiting the [Alibaba models](https://www.alibabacloud.com/help/en/model-studio/developer-reference/use-qwen-by-calling-api).

</li>

<li>

Update your script to use the `model` you choose.

```js
script({
    ...
    model: "alibaba:qwen-max",
})
```

</li>

</ol>

</Steps>

<LLMProviderFeatures provider="alibaba" />
